﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StructureMap;

namespace D3DSS.IoC
{
    /// <summary>
    /// IoC引导程序类
    /// </summary>
    public class BootStrapper
    {
        /// <summary>
        /// 配置注册IoC
        /// </summary>
        public static void ConfigureStructureMap()
        {
            ObjectFactory.Initialize(ioc =>
            {
                ioc.AddRegistry<DomainRegistry>();
                ioc.AddRegistry<RepositoryRegistry>();
            });
        }
    }
}
